import request from '@/utils/request'

// 查询拜访信息列表
export function listCustomerVisit(query) {
  return request({
    url: '/customer/customerVisit/list',
    method: 'get',
    params: query
  })
}

// 查询拜访信息详细
export function getCustomerVisit(id) {
  return request({
    url: '/customer/customerVisit/' + id,
    method: 'get'
  })
}

// 基于客户Id查询拜访记录详细
export function customerVisitByCustomerId(customerId) {
  return request({
    url: '/customer/customerVisit/byCustomerId/' + customerId,
    method: 'get',
  })
}

// 新增拜访信息
export function addCustomerVisit(data) {
  return request({
    url: '/customer/customerVisit',
    method: 'post',
    data: data
  })
}

